System Remote Commands

System Remote Commands ClosedSetup

SCPI Error Queue

Retrieve All Entries In The Queue

Number of Entries In The Queue

Retrieve Next Entry

Retrieve Next Entry Code

Message in the Message Queue

List installed Software Options

Display Refresh State

Display State

Lock the Front-Panel Keys

List SCPI Commands

Instrument start time

SCPI Version Query

Time

Date

Time Zone

Network Time Protocol

Attenuator Bypass History

The commands in this section are remote commands only and have no front-panel key / GUI equivalent.

SCPI Error Queue

The signal generator instrument provides the remote operation error queue as defined in IEEE SCPI standard version 1999.

Items in the SCPI Error queue are from remote operations. These are separate from the errors generated from front panel operations (see Message queue for front panel operations errors).

There is a separate SCPI Error queue for each I/O session. Boot-up instrument messages are handled differently. These messages are placed into the error queue of the first I/O session.

*CLS clears all entries in the queue. See *CLS for more information.

Retrieve All Entries In The Queue

Remote command only.

Queries the SCPI Error queue for all unread items and removes them from the queue. The response is a comma separated list of number, string pairs in FIFO order. If the queue is empty, the response is 0,"".

SCPI Command

:SYSTem:ERRor:ALL?

SCPI Example

SYST:ERR:ALL?

Notes When the SCPI Error queue is empty, 0,"" is returned.
Preset N/A

State Saved

No

Number of Entries In The Queue

Remote command only.

Queries the SCPI Error queue for the number of unread items. As errors and events may occur at any time, more items may be present in the queue at the time it is actually read.

SCPI Command

:SYSTem:ERRor:COUNt?

SCPI Example

SYST:ERR:COUN?

Notes If the queue is empty, 0 is returned.
Preset N/A

State Saved

No

Retrieve Next Entry

Remote command only.

Queries the SCPI Error queue for the next item and removes it from the queue. The response returns the full queue item consisting of an integer and a string. When the queue is empty, 0,"No error" is returned.

SCPI Command

:SYSTem:ERRor[:NEXT]?

SCPI Example

SYST:ERR?

Notes If the queue is empty, 0,"No error" is returned.
Preset N/A

State Saved

No

Retrieve Next Entry Code

Remote command only.

Queries the SCPI Error queue for the next item and removes this item from the queue. The response returns only the error code number omitting the string. When the queue is empty, 0 is returned.

SCPI Command

:SYSTem:ERRor:CODe[:NEXT]?

SCPI Example

SYST:ERR:COD?

Notes If the queue is empty, 0 is returned
Preset N/A

State Saved

No

Message in the Message Queue

Remote command only.

Queries the Message queue and returns the first message which has not been queried/read from this queue. Subsequent query returns the next unread message from the queue, and so on.

SCPI Command

:SYSTem:NOTification?

SCPI Example

:SYST:NOT?

Notes

The response is a comma separated value that consists of:

  • a string representing the timestamp of the message with the format "MM/DD/YYYY<space>HH:MM<space><AM or PM>" in instrument local time. "HH" is 12-hour clock. "<AM or PM>" shows before or after midday by "AM" or "PM".

  • an enum representing the type of message with the enumerations shown below.

    • NONE - Indicates that no unread message is left in the Message queue for the query.

    • INFormation

    • WARNing

    • ERRor

  • a string representing the message.

When all messages have been read from the queue, further queries return: "",NONE,""
Messages related only to the User Interface, such as "Local Operation Resumed", are not returned by this command.
This command only queries and returns the message from the Message queue but does not alter the contents of the Message queue.

List installed Software Options

Remote command only.

This query returns a comma-separated list of installed software application options. This differs from the output for *OPT? in that the *OPT? lists the installed hardware options.

SCPI Command

:DIAGnostic[:CPU]:INFormation:OPTions?

SCPI Example

:DIAG:INF:OPT?

State Saved

No

Lock the Front-Panel Keys

Remote command only.

Disables the instrument keyboard to prevent local input when the instrument is controlled remotely. Annunciation showing a "K" for "Klock" (keyboard lock) alerts the local user that the keyboard is locked. Klock is similar to the GPIB Local Lockout function; namely that no front-panel keys are active with the exception of the Power Standby key. (The instrument is allowed to be turned-off if Klock is ON.) The Klock command is used in remote control situations where Local Lockout cannot be used.

Although primary intent of Klock is to lock-out the front panel, it will lock-out externally connected keyboards through USB. Klock has no effect on externally connected pointing devices (mice).

The front panel ‘Local’ key (Cancel/Esc) has no effect if Klock is ON.

SCPI Command

:SYSTem:KLOCk OFF|ON|0|1

:SYSTem:KLOCk?

SCPI Example

:SYST:KLOC ON

Notes

Keyboard lock remains in effect until turned-off or the instrument is power-cycled

Preset

Initialized to OFF at startup, unaffected by Preset

State Saved

No

Display Refresh State

Remote command only.

Enables or disables active updates for the instrument’s display when the instrument is remotely controlled. When On, the performance (speed) of the remote operation may be degraded. If the instrument is not in LOCAL LOCKOUT, pressing the ESC/Local key on the instrument’s front panel will set the display to On and resume display updates.

SCPI Command

:DISPlay:REMote ON|OFF|1|0

:DISPlay:REMote?

SCPI Example

DISP:REM OFF

DISP:REM?

Notes

Pressing the front panel Local key sets the state to On.

Preset

Not affected by Preset, not part of Persistent State. Always ON immediately after the instrument is booted.

State Saved

No

Display State

Remote command only.

Turns the display state of the screen On or Off. If the instrument is not in LOCAL LOCKOUT, pressing the ESC or Local key on the instrument’s front panel will set the display to On.

SCPI Command

:DISPlay[:WINDow][:STATe]

:DISPlay[:WINDow][:STATe]?

SCPI Example

DISP OFF

DISP?

Couplings

When Display State is turned OFF/ON, Display Refresh State will also be set to OFF/ON.

Preset

ON

State Saved

No

List SCPI Commands

Remote command only.

Outputs a list of the valid SCPI commands for the currently selected Mode.

SCPI Command

:SYSTem:HELP:HEADers?

SCPI Example

:SYST:HELP:HEAD?

Notes

The output is an IEEE Block format with each command separated with the New-Line character (hex 0x0A)

Instrument start time

Remote command only.

Determines the instrument application start time.

SCPI Command

:SYSTem:METRics:STIMe?

SCPI Example

:SYST:METR:STIM?

Notes

The return value is a string with the format "YYYY-MM-DD<space>HH:MM:SS", in instrument local time.

SCPI Version Query

Remote command only.

Returns the SCPI version number with which the instrument complies. The SCPI industry standard changes regularly. This command indicates the version used when the instrument SCPI commands were defined.

SCPI Command

:SYSTem:VERSion?

SCPI Example

:SYST:VERS?

Time

Remote command only.

Reports the instrument's time.

SCPI Command

:SYSTem:TIME?

Notes

Return value is an integer list of hour,minute,seconds

Preset

NA

Date

Remote command only.

Reports the instrument's date.

SCPI Command

:SYSTem:DATE?

Notes

Return value is an integer list of year,month,day

Preset

NA

Time Zone

Remote command only.

Rports the instrument's time zone offset from UTC. It is also used to set the instrument's time zone.

SCPI Command

:SYSTem:TZONe <hour>[,<minute>]

:SYSTem:TZONe?

SCPI Example

:SYST:TZON -7

Notes
  • <hour> must be an integer with range -13 to +15

  • <minute> must be an integer with range -59 to +59. Minutes are rounded down to nearest 15 minute mark.

To set a negative offset, the hour and minute must be negative values.

Minimum total offset is -13,-45

Maximum total offset is 15,45

Preset

NA

Network Time Protocol

Remote command only.

For N5185A and N5186A, this command synchronizes the instrument's time with Network Time Protocol (NTP).

SCPI Command

:SYSTem:CLOCk:NTPRotocol ON|OFF|1|0

:SYST:CLOC:NTPR?

SCPI Example

:SYST:CLOC:NTPR OFF

Preset

This setting is unaffected by Preset but is set to ON on a "Restore System Settings to Default Values".

State Saved No

Attenuator Bypass History

Remote command only.

Query only

Returns the cumulative number of times that the attenuator bypass has been switched. The subopcode indicates the channel being queried.

SCPI Command

:DIAGnostic[:CPU]:INFormation:CCOunt:ATTenuator[1]|2:BYPass?

SCPI Example

:DIAG:INF:CCO:ATT:BYP?